Bookstack Docker Compose
Template Docker Compose
Here is the template docker-compose.yml for the LinuxServer.io deployment of Bookstack.
Note
You need to edit this file with your APP_URL (If using the Azure URL, it would need to be the domain.azurewebsites.net URL) You also need to update the variables below with your password(s).
Script
docker-compose.yml
---
version: "2"
services:
bookstack:
image: lscr.io/linuxserver/bookstack:latest
container_name: bookstack
environment:
- PUID=1000
- PGID=1000
- APP_URL=https://ENTERYOURURL
- DB_HOST=bookstack_db
- DB_USER=bookstack
- DB_PASS=<Enter your password>
- DB_DATABASE=bookstackapp
volumes:
- ${WEBAPP_STORAGE_HOME}/bookstack:/config
ports:
- 80:80
restart: unless-stopped
depends_on:
- bookstack_db
bookstack_db:
image: lscr.io/linuxserver/mariadb:latest
container_name: bookstack_db
environment:
- PUID=1000
- PGID=1000
- MYSQL_ROOT_PASSWORD=<Enter your password>
- TZ=America/Chicago
- MYSQL_DATABASE=bookstackapp
- MYSQL_USER=bookstack
- MYSQL_PASSWORD=<Enter your password>
volumes:
- ${WEBAPP_STORAGE_HOME}/database:/config
ports:
- 3306:3306
restart: unless-stopped